package org.apache.solr.ocean.http;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.solr.ocean.util.Timeout;

/**
 * 
 * @author jasonr
 */
public class HttpTimeout {
	public int socketTimeout;
	public int httpTimeout;
	public int retries;
	public Timeout timeout;

	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

	public HttpTimeout(int socketTimeout, int httpTimeout) {
		this.socketTimeout = socketTimeout;
		this.httpTimeout = httpTimeout;
	}

	public HttpTimeout(int socketTimeout, int httpTimeout, int retries) {
		this.socketTimeout = socketTimeout;
		this.httpTimeout = httpTimeout;
		this.retries = retries;
	}

	public HttpTimeout(int socketTimeout, int httpTimeout, Timeout timeout) {
		this.socketTimeout = socketTimeout;
		this.httpTimeout = httpTimeout;
		this.timeout = timeout;
	}

	public HttpTimeout(int socketTimeout, int httpTimeout, int retries, Timeout timeout) {
		this.socketTimeout = socketTimeout;
		this.httpTimeout = httpTimeout;
		this.retries = retries;
		this.timeout = timeout;
	}
}
